import {createWebHistory, createRouter} from "vue-router";
import Home from "@/views/Home.vue";

const routes = [
    {
        path: "/",
        name: "Home",
        component: Home,
    },
    {
        path: "/user",
        name: "Login",
        component: Login
    },
    {
    	path: "/user/:username",
    	name: "UserCenter",
    	component: UserCenter
    },
    {
    	path: "/edit",
    	name: "UserCenter",
    	component: UserCenter
    },
    {
    	path: "/select",
    	name: "PlaceOrder",
    	component: PlaceOrder
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;